/**
 * 
 */
package cn.gov.msa.service;

import cn.gov.msa.util.PropertiesTools;
import cn.gov.msa.util.UserUntil;
import cn.gov.msa.util.WebServiceTools;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

/**   
* @Title: FileService.java 
* @Package cn.gov.msa.service 
* @Description: TODO(用一句话描述该文件做什么) 
* @author 何宇江  
* @date 2018年3月22日 上午9:03:20 
*/
public class FileService {
	private static String url  =PropertiesTools.readProperties("gahWS.url");
	private String methods = PropertiesTools.readProperties("gahWS.methods");
			
	public String Upload(JSONArray param) throws Exception {
		String result = "";
		
		String[] parameter = new String[]{"DKU603", param.toString()};
		
		result = WebServiceTools.getDatasByUrl(url, methods, parameter);
		
		return result;
	}
	
	
	public String Down(JSONObject param) throws Exception {
		String result = "";
		
		String[] parameter = new String[]{"DKS123", param.toString()};
		
		result = WebServiceTools.getDatasByUrl(url, methods, parameter);
		
		return result;
	}
}
